package 考试;

import java.util.Scanner;

public class Haixian extends Pisa implements Printer {
    private String peiliao;

    public String getPeiliao() {
        return peiliao;
    }

    public void setPeiliao(String peiliao) {
        this.peiliao = peiliao;
    }

    @Override
    public void peigen() {

    }

    @Override
    public void haixian() {
        Scanner input=new Scanner(System.in);
        System.out.println("请输入配料信息：");
        setPeiliao(input.next());
        System.out.println("请输入披萨大小：");
        setDaxiao(input.nextInt());
        System.out.println("披萨价格：");
        setJiage(input.nextInt());
        System.out.println("名称：海鲜披萨");
        System.out.println("价格："+getJiage()+"元");
        System.out.println("大小："+getDaxiao()+"g");
        System.out.println("配料："+getPeiliao());

    }
}
